<template>
    <div class="w-full h-full flex flex-col">
        <div class="w-full flex flex-row justify-between">
            <div class="flex flex-row ">
                <el-input placeholder="请输入内容" clearable prefix-icon="el-icon-search"
                    v-model="s_inves.m_template_base.name" @clear="action_list_template">
                </el-input>
                <el-button type="primary" class=" bg-cmain_hover ml-w10" @click="action_list_template">搜索</el-button>
            </div>
            <el-button type="primary" class=" bg-cmain_hover ml-w10" icon="el-icon-document"
                @click="action_page_base_info('')">
                基本信息管理</el-button>
        </div>
        <div class="w-full h-full mt-w20 ">
            <el-table :data="s_inves.list_template_base" stripe style="width: 100%;height: 93%; ">
                <el-table-column type="index" label="序号" min-width="20%">
                </el-table-column>
                <el-table-column prop="name" label="模板名称" min-width="40%">
                </el-table-column>
                <el-table-column label="操作" min-width="10%">
                    <template slot-scope="scope">
                        <el-button size="mini" @click="action_details_template(scope.row)">
                            详情</el-button>
                        <el-button size="mini" style="background-color:#F56C6C" type="danger"
                            @click="action_del_template(scope.row.id)">
                            删除</el-button>
                    </template>
                </el-table-column>
            </el-table>
            <div class="w-full flex items-end justify-center" style="height:7%">
                <el-pagination background layout="prev, pager, next" :total="s_inves.m_page.total"
                    :page-size="s_inves.m_page.limit" @current-change="action_page_change">
                </el-pagination>
            </div>
        </div>
        <UiDialogTemplateInfo :is_showDialog="dialog_template_info" :data="s_inves.m_template_base.id" type="1"
            @nydialog_closed="dialog_template_info = false"></UiDialogTemplateInfo>
    </div>
</template>

<script src="./Index.ts"></script>
<style src="./Index.less" lang="less" scoped>
</style>
